package com.gistone.commis.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.*;

import java.util.Date;

/**
 * Created by wangfan on 2017/5/10.
 */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class LoginLog {
    private Integer pkId;

    private Integer userId;
    private  User user;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date loginTime;

    public LoginLog(Integer pkId, Integer userId, Date loginTime) {
        this.pkId = pkId;
        this.userId = userId;
        this.loginTime = loginTime;
    }
}